package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.ThotelTopicMapper;
import com.zking.ssm.NH.model.ThotelTopic;
import com.zking.ssm.NH.service.IThotelTopicService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IThotelTopicServiceImpl implements IThotelTopicService {

        @Autowired
        private ThotelTopicMapper thotelTopicMapper;



    @Override
    public int deleteByPrimaryKey(ThotelTopic id) {
        return thotelTopicMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ThotelTopic record) {
        return thotelTopicMapper.insert(record);
    }

    @Override
    public int insertSelective(ThotelTopic record) {
        return thotelTopicMapper.insertSelective(record);
    }

    @Override
    public ThotelTopic selectByPrimaryKey(Long id) {
        return thotelTopicMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ThotelTopic record) {
        return thotelTopicMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ThotelTopic record) {
        return thotelTopicMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ThotelTopic> lista(ThotelTopic record, PageBean pageBean) {
        List<ThotelTopic> bbb=thotelTopicMapper.lista(record);
        return bbb;
    }

    @Override
    public int deletepiliang(ThotelTopic record) {
        return thotelTopicMapper.deletepiliang(record);
    }
}
